{% extends "blog_base.html" %}

{% block title %} 发布文字 {% endblock %}  

{% block content %} 
<form action="" method="post">
    {% csrf_token %} 
        Title:
        {% if form.caption.errors %}
            {{ form.caption.errors }}          
        {% endif %}
        {{ form.caption }}
        Content:
        {% if form.content.errors %}
            {{ form.content.errors }}
        {% endif %}
        {{ form.content }}
        <input type="submit" value="save and add">
</form>
{% endblock %}